package gov.ccswj.modules.ccbusiness.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import gov.ccswj.modules.ccbusiness.dao.CYearreportassetsDao;
import gov.ccswj.modules.ccbusiness.entity.CYearreportassetsEntity;
import gov.ccswj.modules.ccbusiness.service.CYearreportassetsService;



@Service("cYearreportassetsService")
public class CYearreportassetsServiceImpl implements CYearreportassetsService {
	@Autowired
	private CYearreportassetsDao cYearreportassetsDao;
	
	@Override
	public CYearreportassetsEntity queryObject(Integer id){
		return cYearreportassetsDao.queryObject(id);
	}
	
	@Override
	public List<CYearreportassetsEntity> queryList(Map<String, Object> map){
		return cYearreportassetsDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return cYearreportassetsDao.queryTotal(map);
	}
	
	@Override
	public void save(CYearreportassetsEntity cYearreportassets){
		cYearreportassetsDao.save(cYearreportassets);
	}
	
	@Override
	public void update(CYearreportassetsEntity cYearreportassets){
		cYearreportassetsDao.update(cYearreportassets);
	}
	
	@Override
	public void delete(Integer id){
		cYearreportassetsDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		cYearreportassetsDao.deleteBatch(ids);
	}
	@Override
	public void deleteByname(String entname) {
		cYearreportassetsDao.delete(entname);
		
	}
}
